######################################################################
# Communi/Commini shared
######################################################################

QT_VERSION = $$[QT_VERSION]
QT_VERSION = $$split(QT_VERSION, ".")
QT_VER_MAJ = $$member(QT_VERSION, 0)
QT_VER_MIN = $$member(QT_VERSION, 1)

lessThan(QT_VER_MAJ, 4) | lessThan(QT_VER_MIN, 4) {
    error($$TARGET requires Qt 4.4 or newer but Qt $$[QT_VERSION] was detected.)
}

CONFIG += silent
DEPENDPATH += ../shared
INCLUDEPATH += ../shared
DESTDIR = ../bin

OBJECTS_DIR = .tmp
MOC_DIR = .tmp
RCC_DIR = .tmp
UI_DIR = .tmp

FORMS += messageview.ui

HEADERS += alias.h
HEADERS += completionmodel.h
HEADERS += historylineedit.h
HEADERS += ircmodel.h
HEADERS += ircmodelitem.h
HEADERS += messageparser.h
HEADERS += messageview.h
HEADERS += nickhighlighter.h
HEADERS += textbrowser.h
HEADERS += topiclabel.h
HEADERS += trayicon.h

SOURCES += alias.cpp
SOURCES += completionmodel.cpp
SOURCES += historylineedit.cpp
SOURCES += ircmodel.cpp
SOURCES += ircmodelitem.cpp
SOURCES += messageparser.cpp
SOURCES += messageview.cpp
SOURCES += nickhighlighter.cpp
SOURCES += textbrowser.cpp
SOURCES += topiclabel.cpp
SOURCES += trayicon.cpp
